/*
 * @Author: llixxm
 * @Date: 2020-04-28 09:49:53
 * @Description: 含有lebel的利润中心/业务单元
 */
import React, { Component } from 'react';
import { base } from 'nc-lightapp-front';
import FormLabel from '../../components/FormLabel';
const { NCRow, NCCol } = base;
import buSecondRefer from './buSecondRefer';

class BuSecondReferWithLabel extends Component {
    constructor(props) {
        super(props);
        this.state = {

        }
    }
    render(){
        let {labelname, params, children} = this.props;
        return(
            <NCRow className="myrow">
                <NCCol md={2} sm={2}>
                    <FormLabel labelname={labelname} />{/* 国际化处理： 业务单元/利润中心*/}
                </NCCol>
                <NCCol md={7} sm={7}>
                    <div className="book-ref">
                        {buSecondRefer(this, params)}
                    </div>
                </NCCol>
                <NCCol md={3} sm={3}>
                    {children}
                </NCCol>
            </NCRow>
        )
    }
}

export default BuSecondReferWithLabel;